package com.example.voucher.common;

public class TenantCodeThreadLocal {

    private TenantCodeThreadLocal() {}

    private static final ThreadLocal<String> tenantThreadLocal = ThreadLocal.withInitial(() -> "");

    public static void setTenantCode(String tenantCode) {
        tenantThreadLocal.set(tenantCode);
    }

    public static String getTenantCode() {
        return tenantThreadLocal.get();
    }

}
